
const models = {
  'account.invoice': {
    extend: BaseClass => {
      class cls extends BaseClass {
      }

      cls.compute_taxes = async (id, fields={}, kwargs={} ) => {
        return cls.call_as_write_read({
          method: 'compute_taxes',
          args: [ id ],
          kwargs,
        }, fields );

      }

      cls.action_invoice_open = async (id, fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'action_invoice_open',
          args: [ id ],
          kwargs,
        }, fields );
      }

      return cls;
    },
  },

//    'account.invoice.line': {},
//    'account.invoice.tax': {},
//    'account.payment.term': {},
//    'account.payment.term.line': {},
}

export default {
  models,
};
